import { EggAppConfig, PowerPartial } from 'egg';
import { production } from '../database/config.json';
export default () => {
  const config: PowerPartial<EggAppConfig> = {};
  config.sequelize = {
    dialect: 'mysql',
    host: production.host,
    port: production.port,
    database: production.database,
    username: production.username,
    password: production.password,
  };
  return config;
};
